
import os
import configparser

# print("work dir:", os.getcwd())
base_dir = os.getcwd()

cf_path = os.path.join(base_dir, "iconf/app.conf")
cf = configparser.ConfigParser()
cf.read(cf_path)

db_user = cf.get("mysql", "user")
db_pwd = cf.get("mysql", "pwd")
db_host = cf.get("mysql", "host")
db_name = cf.get("mysql", "db")

# print("db_user:", db_user)
rabbit_user = cf.get("rabbit", "user")
rabbit_pwd = cf.get("rabbit", "pwd")
rabbit_host = cf.get("rabbit", "host")
